<template>
  <div class="baseBtn">
    <a-button :size="btnSize" :type="btnType" :html-type="htmlType" @click="btnEvent">{{ btnText }}</a-button>
  </div>
</template>

<script>
// import { Button } from 'ant-design-vue';

export default {
  // components: {
  //   AButton: Button,
  // },
  props: {
    btnText: {
      type: String,
      default: '登录',
    },
    htmlType: {
      type: String,
      default: 'button',
    },
    btnType: {
      type: String,
      default: 'primary',
    },
    btnSize: {
      type: String,
      default: 'default',
    },
  },
  methods: {
    btnEvent() {
      this.$emit('btnEvent');
    },
  },
};
</script>

<style scoped>
.baseBtn {
  display: inline-block;
}
</style>
